package city.spring.domain.entity.mealService;

import city.spring.modules.bed.entity.BedRoomEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * send_area
 *
 * @author yzh
 */
@Data
@TableName("send_area")
public class SendAreaEntity implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 区域名称
     */
    private String areaName;

    /**
     * 区域代码
     */
    private String areaCode;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 更新时间
     */
    private Date gmtModified;

    @TableField(exist = false)
    private List<BedRoomEntity> children;

}
